{block content}

<p><a href="{plink default}" class="button ui-state-default ui-corner-all" title="{!_'Back to users list'}"><span class="ui-icon ui-icon-carat-1-w floatLeft">&nbsp;</span>&nbsp;{!_"Back to users list"}</a></p>

<h1>{$title} for the user "{$user_name}"</h1>

{foreach $access as $roleName => $roleAccess}
    <h2>Role "{$roleName}"</h2>
    {if empty($roleAccess)}
        No permissions assigned to this role.
    {else}
        <table>
            <tr>
                <th>Resource</th>
                <th>Privilege</th>
                <th>Access</th>
            </tr>
            {foreach $roleAccess as $permission}
                <tr>
                    <td>{$permission['resource']}</td>
                    <td>{$permission['privilege']}</td>
                    <td class="center">
                        <img src="{$basePath}/images/kernel/acl/{if $permission['allowed']}true{else}false{/if}.gif" title="Access {if $permission['allowed']}granted{else}denied{/if}"  width="20" height="20" alt="Access icon" />
                    </td>
                </tr>
            {/foreach}
        </table>
    {/if}
{/foreach}